package org.jeecg.modules.golf.question.client;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.golf.question.entity.MyQuestionPlan;
import org.jeecg.modules.golf.question.entity.QuestionTypeMapping;
import org.jeecg.modules.golf.tag.entity.TagMapping;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 问题
 * @Author: jeecg-boot
 * @Date:   2020-10-18
 * @Version: V1.0
 */
@Getter
@Setter
@ApiModel(value="questionPage对象", description="问题")
public class QuestionPage {

	/**主键*/
	@ApiModelProperty(value = "主键")
	private Long id;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
	private  Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
	private String sysOrgCode;
	/**问题标题*/
	@Excel(name = "问题标题", width = 15)
	@ApiModelProperty(value = "问题标题")
	private String title;
	/**学员*/
	@Excel(name = "学员", width = 15, dictTable = "sys_user join sys_user_role  on sys_user.id = sys_user_role.user_id", dicText = "realname", dicCode = "sys_user.id")
    @Dict(dictTable = "sys_user join sys_user_role  on sys_user.id = sys_user_role.user_id", dicText = "realname", dicCode = "sys_user.id")
	@ApiModelProperty(value = "学员")
	private String trainee;
	/**教练id*/
	@Excel(name = "教练id", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@ApiModelProperty(value = "教练id")
	private String coach;
	/**问题状态*/
	@Excel(name = "问题状态", width = 15, dicCode = "question_status")
    @Dict(dicCode = "question_status")
	@ApiModelProperty(value = "问题状态")
	private Integer questionStatus;
	/**差点*/
	@Excel(name = "差点", width = 15)
	@ApiModelProperty(value = "差点")
	private Integer chadian;
	/**描述*/
	@Excel(name = "描述", width = 15)
	@ApiModelProperty(value = "描述")
	private String description;
	/**测试成绩*/
	@Excel(name = "测试成绩", width = 15)
	@ApiModelProperty(value = "测试成绩")
	private String testResult;
	/**测试项目*/
	@Excel(name = "测试项目", width = 15, dicCode = "test_project")
    @Dict(dicCode = "test_project")
	@ApiModelProperty(value = "测试项目")
	private String testProject;
	/**视频地址*/
	@Excel(name = "视频地址", width = 15)
	@ApiModelProperty(value = "视频地址")
	private String vedioUrl;





	@ExcelCollection(name="问题分类方案关联表")
	@ApiModelProperty(value = "问题分类方案关联表")
	private List<QuestionTypeMapping> questionTypeMappingList;
	@ExcelCollection(name="标签关联表")
	@ApiModelProperty(value = "标签关联表")
	private List<TagMapping> tagMappingList;

	@ApiModelProperty(value = "问题分类")
	private String questionTypeJoin;

	@ApiModelProperty(value = "学员头像")
	private String avatar ;

	/**效果描述*/
	@Excel(name = "效果描述", width = 15)
	@ApiModelProperty(value = "效果描述")
	private String effectiveDescription;
	/**视频地址*/
	@Excel(name = "视频地址", width = 15)
	@ApiModelProperty(value = "视频地址")
	private String effectiveVedio;
	/**训练时长*/
	@Excel(name = "训练时长", width = 15)
	@ApiModelProperty(value = "训练时长")
	private Integer trainPeriod;
	/**训练频率*/
	@Excel(name = "训练频率", width = 15)
	@ApiModelProperty(value = "训练频率")
	private Integer trainFrequency;





	@ExcelCollection(name="我的问题解决方案")
	@ApiModelProperty(value = "我的问题解决方案")
	private List<MyQuestionPlan> myQuestionPlanList;

}
